<ul class="layui-nav layui-nav-tree" lay-filter="test">
    {% for nav in request.web_navs %}
    {% with full_path='/web/'|add:nav.pattern %}
    <li class="layui-nav-item {% if request.path == full_path %}layui-this{% endif %}">
        <a href="{{ full_path }}">{{ nav.name }}</a>
    </li>
    {% endwith %}
    {% endfor %}
</ul>